<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="h" uri="/hd-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录</title>
<script type="text/javascript" src="js/jquery-1.2.6.js"></script>

<link href="style/main.css" rel="stylesheet" type="text/css"/>
</head>

<body class="body_bg">
<div class="ricoh_login_k">
	<div class="ricoh_login">
	<form action="member_login.action" method="post" onsubmit="return valdater();">
	  <table width="210" height="76" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="56" class="ricoh_td">用户名：</td>
          <td width="154"><input type="text" name="loginName" id="loginName" style="width:140px;" /></td>
        </tr>
        <tr>
          <td class="ricoh_td">密　码：</td>
          <td><input type="password" name="password" id="password" style="width:140px;" autocomplete="off"/></td>
        </tr>
        <tr>
          <td class="ricoh_td">&nbsp;</td>
          <td><input type="submit" name="button" id="button" value="登录系统" class="send_btn" /></td>
        </tr>
      </table>
      </form>
	</div>
</div>

</body>


<script>
	$(document).ready(function(){
		$("#loginName").val("");
		$("#password").val("");
		
		if("${message}" != ""){
			alert("${message}");
		}
	});

	function valdater(){
		if($("#loginName").val() == ""){
			alert("请输入登录名");
			return false;
		}else if($("#password").val() == ""){
			alert("请输入密码");
			return false;
		}else{
			return true;
		}
	}
		
</script>
</html>
